package com.tx.admin.modules.base.entity;

import java.util.Set;

import javax.persistence.MappedSuperclass;
import javax.persistence.Transient;

import com.alibaba.excel.annotation.ExcelProperty;
import com.tx.admin.core.entity.SuperEntity;
import com.tx.admin.core.anno.JpaKey;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

@MappedSuperclass
@Data
public abstract class RbacEntity extends SuperEntity{

	@ApiModelProperty("创建人编号")
	@ExcelProperty(value = "创建人编号")
	private String crtUser;
	
	@ApiModelProperty("创建人部门")
	@ExcelProperty(value = "更新人部门")
	private String crtDepartment;
	
	@ApiModelProperty("更新人编号")
	@ExcelProperty(value = "更新人编号")
	private String uptUser;
	
	
	@ApiModelProperty("更新人部门")
	@ExcelProperty(value = "更新人部门编号")
	private String uptDepartment;
	
	@Transient
	@JpaKey(key="crtUser",sys=true,and=false)
	@ApiModelProperty("用户数据权限用")
	private Set<String> filterUser;
	
	@Transient
	@JpaKey(key="crtDepartment",sys=true,and=false)
	@ApiModelProperty("部门数据权限用")
	private Set<String> filterDepartment;
	
	
}
